define([
    "jquery",
    "underscore",
    "backbone",
    "text!html/main/mainListPage.html"
], function ($, _, backbone, html) {
    'use strict';
    var view =  Backbone.View.extend({
        id: "",
        tag: "li",
        className: "list",
        initialize: function (options) {
            this.options = options;
            this.createDom();
        },
        events: function () {
            var evtObj = {};
            // evtObj["click #main"] = this.testClick;
            return evtObj;
        },
        testClick: function () {
            // common.goto();
            //location.href = "#sdsdsfsdfdfd";
        },
        createDom: function () {
            this.tpl = _.template(html);
        },
        getModel: function () {
            return {
                index: this.options.index
                //name: common.localModel.user.toJSON().name || "main"
            }
        }
    });
    return view;
});